import {mapMutations} from 'vuex'
import BaseLoding from 'components/BaseLoding'

export const details = {
  methods: {
    ...mapMutations({
      setGoodDetails: 'goodsDetail'
    }),

    details (val) {
      this.setGoodDetails(val)
      this.$router.push({path: `/home/${val.goodsId}`})
    }
  }
}

export const loading = {
  data () {
    return {
      showFlag: true // 是否显示lodding
    }
  },

  components: {
    BaseLoding
  }
}
